<ui:composition template="/WEB-INF/templates/main-template.xhtml" 
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui" >
	
	<ui:param name="pageName" value="Create New Asset" />
	
	<ui:define name="sidebar">
		<ui:include src="/WEB-INF/templates/public-sidebar.xhtml"/>
	</ui:define>
	<ui:define name="content">
		
		<h:outputText value="Asset Management" styleClass="outputTextTitle"/>	
		<h:form id="NewAsset"> 
		 <p:growl/>
		 <p:growl id="growl"/>
		 
		  <p:tabView id="Table" > 
				
				<p:tab id="tab1" title="Create New Asset" >  
				 <h:outputLabel value="Asset Details" style="font-weight:bold;color: #00A2DE;"/>
				   
		            <h:panelGrid columns="6" cellspacing="8" columnClasses="employeeDetailLabel,gridCellMiddleLeftAligned, employeeDetailText, employeeDetailLabel,gridCellMiddleLeftAligned, employeeDetailText" >
                       		           
			           <h:outputLabel value="Asset Category" />
			           <h:outputLabel value=":" />
			           <p:selectOneMenu value="#{createNewAssetBean.assetMaster.assetCategory}" style="width:160px;">
			           		<f:selectItems value="#{createNewAssetBean.assetCategoryMap}" />
			           </p:selectOneMenu> 
			           
			           <h:outputLabel value="Asset Type" />
			           <h:outputLabel value=":" />
			           <p:selectOneMenu value="#{createNewAssetBean.assetMaster.assetType}" style="width: 160px;">
				              <f:selectItems value="#{createNewAssetBean.assetsTypeMap}" />
			           </p:selectOneMenu>
			           
			           <h:outputLabel value="Asset Code" />
			           <h:outputLabel value=":" />
			           <p:inputText value="#{createNewAssetBean.assetMaster.assetCode}" />
			           
			           <h:outputLabel value="Location" />
			           <h:outputLabel value=":" />
			           <p:inputText value="#{createNewAssetBean.assetMaster.location}" />
			           
			           <h:outputLabel value="Asset Name" />
			           <h:outputLabel value=":" />
			           <p:inputText value="#{createNewAssetBean.assetMaster.assetName}" />
			           
			           <h:outputLabel value="Model" />
			           <h:outputLabel value=":" />
			           <p:inputText value="#{createNewAssetBean.assetMaster.model}" />   
			           
			           <h:outputLabel value="Hard Disk" />
			           <h:outputLabel value=":" />
			           <p:inputText value="#{createNewAssetBean.assetMaster.hardDisk}" />
			           
			           <h:outputLabel value="Memory (GB)" />
			           <h:outputLabel value=":" />
			           <p:inputText value="#{createNewAssetBean.assetMaster.memory}" />

			           <h:outputLabel value="Manufacturer" />
			           <h:outputLabel value=":" />
			           <p:inputText value="#{createNewAssetBean.assetMaster.manufacturer}" />

			           <h:outputLabel value="OS" />
			           <h:outputLabel value=":" />
			           <p:inputText value="#{createNewAssetBean.assetMaster.os}" />

			           <h:outputLabel value="Processor" />
			           <h:outputLabel value=":" />
			           <p:inputText value="#{createNewAssetBean.assetMaster.processor}" />

			           <h:outputLabel value="Vendor Name" />
			           <h:outputLabel value=":" />
			           <p:inputText value="#{createNewAssetBean.assetMaster.vendorName}" />
			           
			           <h:outputLabel value="Serial Number" />
			           <h:outputLabel value=":" />
			           <p:inputText value="#{createNewAssetBean.assetMaster.serialNumber}" />

			           <h:outputLabel value="Bar Code" />
			           <h:outputLabel value=":" />
			           <p:inputText value="#{createNewAssetBean.assetMaster.barCode}" />

			           <h:outputLabel value="Network Adaptor" />
			           <h:outputLabel value=":" />
			           <p:inputText value="#{createNewAssetBean.assetMaster.networkAdaptor}" />
			           
			           <h:outputLabel value="Acquisition Date" />
			           <h:outputLabel value=":" />
			           <p:calendar navigator="true" display="inline" yearRange="c-10:c+30" pattern="dd-MMM-yyyy" value="#{createNewAssetBean.assetMaster.acquisitionDate}"/>
			           
			           <h:outputLabel value="Expiry date" />
			           <h:outputLabel value=":" />
			           <p:calendar navigator="true" display="inline" yearRange="c-10:c+30" pattern="dd-MMM-yyyy" value="#{createNewAssetBean.assetMaster.expiryDate}" />

			           <h:outputLabel value="Warranty Date " />
			           <h:outputLabel value=":" />
			           <p:calendar navigator="true" display="inline" yearRange="c-10:c+30" pattern="dd-MMM-yyyy" value="#{createNewAssetBean.assetMaster.warrantyExpiryDate}" />
			       
			           <h:outputLabel value="Asset Status" />
			           <h:outputLabel value=":" />
			           <p:selectOneMenu value="#{createNewAssetBean.assetMaster.assetStatus}" style="width:160px;">
			           		<f:selectItems value="#{createNewAssetBean.assetStatusMap}" />
			           </p:selectOneMenu>

			           <h:outputLabel value="Business Impact" />
			           <h:outputLabel value=":" />
			           <p:selectOneMenu value="#{createNewAssetBean.assetMaster.buinessImpact}" style="width:160px;">
			           		<f:selectItems value="#{createNewAssetBean.businessImpactMap}" />
			           </p:selectOneMenu>
	          </h:panelGrid>	
	          <h:panelGrid columns="4" style="width:100%;" >
		               <h:outputLabel value="*" style="color:red"/>
		               <h:outputLabel value="Asset Description" />
			           <h:outputLabel value=":" style="margin-left:39px;"/>
			           <p:inputTextarea style="width:530px;" value="#{createNewAssetBean.assetMaster.assetDescription}" autoResize="false"/>
		      </h:panelGrid>	            
		               
           <h:panelGrid style="padding-top: 5px; width: 100%; border-top: 1px solid #d9d9d9"
						columnClasses="gridCellMiddleRightAligned">
			  <h:panelGroup>
		           <p:commandButton  value="Submit" update="@form"  actionListener="#{createNewAssetBean.confirmationAction}"  />
		           <p:commandButton value="Home" action="wudashboard" /> 		           
	          </h:panelGroup>
		   </h:panelGrid>					
		</p:tab> 
				
		<p:tab id="tab2" title="Edit Asset"> 				
			
             <h:panelGrid columns="3"  columnClasses="gridCellMiddleLeftAligned, gridCellMiddleRightAligned"> 
            	    
		    	    <h:outputLabel value="Asset Type" style="font-weight:bold;"/>
		    	    <h:outputLabel value="Asset Status" style="font-weight:bold;float:left;"/>
		    	    <h:outputLabel value="" />
		    	    
		    	    <p:selectOneMenu value="#{createNewAssetBean.selectedAssetType}" style="width: 160px;">
			              <f:selectItem itemLabel="--Select One--" itemValue="" />
			              <f:selectItems value="#{createNewAssetBean.assetsTypeMap}" />
		            </p:selectOneMenu>
		    	   
		    	    <p:selectOneMenu value="#{createNewAssetBean.selectedAssetStatus}" style="width:160px;">
			           		<f:selectItem itemLabel="--Select One--" itemValue="" />
			           		<f:selectItems value="#{createNewAssetBean.assetStatusMap}" />
			        </p:selectOneMenu>
		           
		           <p:commandButton id="Search" value="Search" update="@form"  actionListener="#{createNewAssetBean.assetEditActionListener}"  />
             </h:panelGrid>
             
             <h:panelGrid rendered="#{createNewAssetBean.assetEditListRender}">
	             <p:dataTable paginator="true" rows="20" id="assetEdit" value="#{createNewAssetBean.assetMasterEditList}" var="asset" >  
	          
		            <p:column headerText="S.No"> 
		                <h:outputText value="#{asset.sno}" />
		            </p:column>  
		            
		            <p:column headerText="Asset Code" filterMatchMode="contains" filterBy="#{asset.assetCode}"  > 
		                <h:outputText value="#{asset.assetCode}" />
		            </p:column> 
		            
		            <p:column headerText="Asset Name" filterMatchMode="contains" filterBy="#{asset.assetName}"  > 
		                <h:outputText value="#{asset.assetName}" />
		            </p:column> 
		            
		            <p:column headerText="Model" filterMatchMode="contains" filterBy="#{asset.model}"  > 
		                <h:outputText value="#{asset.model}" />
		            </p:column> 
		            
		            <p:column headerText="Hard Disk" filterMatchMode="contains" filterBy="#{asset.hardDisk}"  > 
		                <h:outputText value="#{asset.hardDisk}" />
		            </p:column>
		            
		            <p:column headerText="OS" filterMatchMode="contains" filterBy="#{asset.os}"  > 
		                <h:outputText value="#{asset.os}" />
		            </p:column> 
		            
		            <p:column headerText="Memory(GB)" filterMatchMode="contains" filterBy="#{asset.memory}"  > 
		                <h:outputText value="#{asset.memory}" />
		            </p:column>  
		  
		           <!--  <p:column headerText="Acquisition Date"> 
		                <h:outputText value="#{asset.acquisitionDate}" >
		                	<f:convertDateTime pattern="dd-MMM-yyyy" timeZone="#{createNewAssetBean.timeZone}"/>
		                </h:outputText>
		            </p:column>
		            
		            <p:column headerText="Expiry Date"> 
		                <h:outputText value="#{asset.expiryDate}" >
		                	<f:convertDateTime pattern="dd-MMM-yyyy" timeZone="#{createNewAssetBean.timeZone}"/>
		                </h:outputText>
		            </p:column> -->
		        
		            <p:column headerText="Edit" > 
		             	<p:commandButton value="Edit" oncomplete="assetEditDialog.show()" update="@form">
							<f:setPropertyActionListener target="#{createNewAssetBean.editAssetMaster}" value="#{asset}"></f:setPropertyActionListener>
						</p:commandButton>
		            </p:column>
		          
	            </p:dataTable>  
	            </h:panelGrid>
	            
	            
		</p:tab>
		<p:tab id="tab3" title="View/search Asset">
			 <h:panelGrid columns="3"  columnClasses="gridCellMiddleLeftAligned, gridCellMiddleRightAligned"> 
            	    
		    	    <h:outputLabel value="Asset Type" style="font-weight:bold;"/>
		    	    <h:outputLabel value="Asset Status" style="font-weight:bold;float:left;"/>
		    	    <h:outputLabel value="" />
		    	    
		    	    <p:selectOneMenu value="#{createNewAssetBean.selectedViewAssetType}" style="width: 160px;">
			              <f:selectItem itemLabel="--Select One--" itemValue="" />
			              <f:selectItems value="#{createNewAssetBean.assetsTypeMap}" />
		            </p:selectOneMenu>
		    	   
		    	    <p:selectOneMenu value="#{createNewAssetBean.selectedViewAssetStatus}" style="width:160px;">
			           		<f:selectItem itemLabel="--Select One--" itemValue="" />
			           		<f:selectItems value="#{createNewAssetBean.assetStatusMap}" />
			           		<f:selectItem itemLabel="ALL" itemValue="All" />
			        </p:selectOneMenu>
		           
		           <p:commandButton  value="Search" update="@form"  actionListener="#{createNewAssetBean.assetViewValidation}"  />
             </h:panelGrid>
             
             
             <h:panelGrid rendered="#{createNewAssetBean.assetEditListRender}">
             <p:scrollPanel style="width:900px;height:500px" mode="native"> 
	             <p:dataTable id="assetDetails" paginator="true" rows="20" value="#{createNewAssetBean.allAssetsList}" var="asset" >  
	          
		            <p:column> 
		                <f:facet name="header">  
		            		<h:outputText value="S.No" />  
		       		    </f:facet> 
		                <h:outputText value="#{asset.sno}" />
		            </p:column>  
		            
		            <p:column filterMatchMode="contains" filterBy="#{asset.assetCode}"  >
		            	<f:facet name="header">  
		            		<h:outputText value="Asset Code" />  
		       		    </f:facet>  
		                <h:outputText value="#{asset.assetCode}" />
		            </p:column> 
		            
		            <p:column filterMatchMode="contains" filterBy="#{asset.assetName}">
		            	<f:facet name="header">  
		            		<h:outputText value="Asset Name" />  
		       		    </f:facet>  
		                <h:outputText value="#{asset.assetName}" />
		            </p:column> 
		            
		            <p:column filterMatchMode="contains" filterBy="#{asset.model}"  >
		            	<f:facet name="header">  
		            		<h:outputText value="Model" />  
		       		    </f:facet>  
		                <h:outputText value="#{asset.model}" />
		            </p:column>
		            
		            <p:column filterMatchMode="contains" filterBy="#{asset.assetDescription}"  >
		            	<f:facet name="header">  
		            		<h:outputText value="Asset Description" />  
		       		    </f:facet>  
		                <h:outputText value="#{asset.assetDescription}" />
		            </p:column>  
		            
		            <p:column filterMatchMode="contains" filterBy="#{asset.manufacturer}"  >
		            	<f:facet name="header">  
		            		<h:outputText value="Manufacturer" />  
		       		    </f:facet>  
		                <h:outputText value="#{asset.manufacturer}" />
		            </p:column> 
		            
		            <p:column filterMatchMode="contains" filterBy="#{asset.processor}"  > 
		            	<f:facet name="header">  
		            		<h:outputText value="Processor" />  
		       		    </f:facet> 
		                <h:outputText value="#{asset.processor}" />
		            </p:column> 
		            
		            <p:column filterMatchMode="contains" filterBy="#{asset.vendorName}"  > 
		            	<f:facet name="header">  
		            		<h:outputText value="Vendor Name" />  
		       		    </f:facet> 
		                <h:outputText value="#{asset.vendorName}" />
		            </p:column> 
		            
		            <p:column filterMatchMode="contains" filterBy="#{asset.hardDisk}"  >
		            	<f:facet name="header">  
		            		<h:outputText value="Hard Disk" />  
		       		    </f:facet>  
		                <h:outputText value="#{asset.hardDisk}" />
		            </p:column>
		            
		            <p:column filterMatchMode="contains" filterBy="#{asset.serialNumber}">
		            	<f:facet name="header">  
		            		<h:outputText value="Serial Number" />  
		       		    </f:facet>  
		                <h:outputText value="#{asset.serialNumber}" />
		            </p:column>
		            
		            <p:column filterMatchMode="contains" filterBy="#{asset.os}">
		            	<f:facet name="header">  
		            		<h:outputText value="OS" />  
		       		    </f:facet>  
		                <h:outputText value="#{asset.os}" />
		            </p:column> 
		            
		            <p:column filterMatchMode="contains" filterBy="#{asset.memory}">
		            	<f:facet name="header">  
		            		<h:outputText value="Memory(GB)" />  
		       		    </f:facet>  
		                <h:outputText value="#{asset.memory}" />
		            </p:column>
		            
		            <p:column filterMatchMode="contains" filterBy="#{asset.networkAdaptor}">
		            	<f:facet name="header">  
		            		<h:outputText value="Network Adaptor" />  
		       		    </f:facet>  
		                <h:outputText value="#{asset.networkAdaptor}" />
		            </p:column>  
		            
		            <p:column filterMatchMode="contains" filterBy="#{asset.location}"> 
		            	<f:facet name="header">  
		            		<h:outputText value="Location" />  
		       		    </f:facet> 
		                <h:outputText value="#{asset.location}" />
		            </p:column>
		            
		            <p:column filterMatchMode="contains" filterBy="#{asset.assetStatus}"> 
		            	<f:facet name="header">  
		            		<h:outputText value="Asset Status" />  
		       		    </f:facet> 
		                <h:outputText value="#{asset.assetStatus}" />
		            </p:column>
		            
		            <p:column filterMatchMode="contains" filterBy="#{asset.buinessImpact}"> 
		            	<f:facet name="header">  
		            		<h:outputText value="Business Impact" />  
		       		    </f:facet> 
		                <h:outputText value="#{asset.buinessImpact}" />
		            </p:column>
		            
		             <p:column>
		             	<f:facet name="header">  
		            		<h:outputText value="Assigned To" />  
		       		    </f:facet>  
		                <h:outputText value="#{asset.assetRequest.employee.firstName} #{asset.assetRequest.employee.lastName}" />
		            </p:column>
		            
		            <p:column>
		             	<f:facet name="header">  
		            		<h:outputText value="Assigned By" />  
		       		    </f:facet>  
		                <h:outputText value="#{asset.assetHistory.assetAssignedBy.firstName} #{asset.assetHistory.assetAssignedBy.firstName}" />
		            </p:column>
		            
		            <p:column>
		            	<f:facet name="header">  
		            		<h:outputText value="Acquisition Date" />  
		       		    </f:facet>  
		                <h:outputText value="#{asset.acquisitionDate}" >
		                	<f:convertDateTime pattern="dd-MMM-yyyy" timeZone="#{createNewAssetBean.timeZone}"/>
		                </h:outputText>
		            </p:column>
		            
		            <p:column> 
		            	<f:facet name="header">  
		            		<h:outputText value="Expiry Date" />  
		       		    </f:facet> 
		                <h:outputText value="#{asset.expiryDate}" >
		                	<f:convertDateTime pattern="dd-MMM-yyyy" timeZone="#{createNewAssetBean.timeZone}"/>
		                </h:outputText>
		            </p:column> 
		            
		            <p:column>
		            	<f:facet name="header">  
		            		<h:outputText value="Warranty Date" />  
		       		    </f:facet>  
		                <h:outputText value="#{asset.warrantyExpiryDate}" >
		                	<f:convertDateTime pattern="dd-MMM-yyyy" timeZone="#{createNewAssetBean.timeZone}"/>
		                </h:outputText>
		            </p:column>    
		          
	            </p:dataTable> 
	             </p:scrollPanel>
	              
	            </h:panelGrid>
	            <h:commandLink>  
		            <p:graphicImage value="/resources/styles/images/excel.png" title="Export to Excel"/>  
		            <p:dataExporter type="xls" target="assetDetails" fileName="Asset_Details" />  
		        </h:commandLink> 
		</p:tab>	
			
	 </p:tabView>
	 
	 <p:dialog hideEffect="fade" showEffect="fade"
				header="Edit Asset Details "
				id="assetEditDialog" widgetVar="assetEditDialog" resizable="false"
				modal="true" >
				<p:scrollPanel style="width:700px;height:450px" mode="native"> 
				<h:panelGrid id="editassets" columns="8" cellspacing="8" columnClasses="gridCellMiddleLeftAligned,employeeDetailLabel,gridCellMiddleLeftAligned, employeeDetailLabel">
                           
			           <h:outputLabel value="" />
			           <h:outputLabel value="Asset Category" />
			           <h:outputLabel value=":" />
			           <p:selectOneMenu value="#{createNewAssetBean.editAssetMaster.assetCategory}" style="width:160px;">
			           		<f:selectItem itemLabel="IT-Assets" itemValue="IT-Assets" />
			           		<f:selectItem itemLabel="Non-IT Assets" itemValue="Non-IT Assets" />
			           </p:selectOneMenu> 
			           
			           <h:outputLabel value="" />
			           <h:outputLabel value="Asset Type" />
			           <h:outputLabel value=":" />
			           <p:selectOneMenu value="#{createNewAssetBean.editAssetMaster.assetType}" style="width: 160px;">
				              <f:selectItems value="#{createNewAssetBean.assetsTypeMap}" />
			           </p:selectOneMenu>
			           
			           <h:outputLabel value="" />
			           <h:outputLabel value="Asset Code" />
			           <h:outputLabel value=":" />
			           <p:inputText value="#{createNewAssetBean.editAssetMaster.assetCode}" />
			           
			           <h:outputLabel value="" />
			           <h:outputLabel value="Asset Name" />
			           <h:outputLabel value=":" />
			           <p:inputText value="#{createNewAssetBean.editAssetMaster.assetName}" />
			           
			           <h:outputLabel value="" />
			           <h:outputLabel value="Manufacturer" />
			           <h:outputLabel value=":" />
			           <p:inputText value="#{createNewAssetBean.editAssetMaster.manufacturer}" />
			           
		           	   <h:outputLabel value="" />
			           <h:outputLabel value="Model" />
			           <h:outputLabel value=":" />
			           <p:inputText value="#{createNewAssetBean.editAssetMaster.model}" />   
			           
			           <h:outputLabel value="" />
			           <h:outputLabel value="Processor" />
			           <h:outputLabel value=":" />
			           <p:inputText value="#{createNewAssetBean.editAssetMaster.processor}" />
			           
			           <h:outputLabel value="" />
			           <h:outputLabel value="Vendor Name" />
			           <h:outputLabel value=":" />
			           <p:inputText value="#{createNewAssetBean.editAssetMaster.vendorName}" />
			           
			           <h:outputLabel value="" />
			           <h:outputLabel value="Hard Disk" />
			           <h:outputLabel value=":" />
			           <p:inputText value="#{createNewAssetBean.editAssetMaster.hardDisk}" />
			           
			           <h:outputLabel value="" />
			           <h:outputLabel value="Serial Number" />
			           <h:outputLabel value=":" />
			           <p:inputText value="#{createNewAssetBean.editAssetMaster.serialNumber}" />
			           
			           <h:outputLabel value="" />
			           <h:outputLabel value="Memory (GB)" />
			           <h:outputLabel value=":" />
			           <p:inputText value="#{createNewAssetBean.editAssetMaster.memory}" />
			           
			           <h:outputLabel value="" />
			           <h:outputLabel value="Acquisition Date" />
			           <h:outputLabel value=":" />
			           <p:calendar navigator="true" display="inline" yearRange="c-10:c+30" pattern="dd-MMM-yyyy" value="#{createNewAssetBean.editAssetMaster.acquisitionDate}"/>
			           
			           <h:outputLabel value="" />
			           <h:outputLabel value="OS" />
			           <h:outputLabel value=":" />
			           <p:inputText value="#{createNewAssetBean.editAssetMaster.os}" />
			           
			           <h:outputLabel value="" />
			           <h:outputLabel value="Bar Code" />
			           <h:outputLabel value=":" />
			           <p:inputText value="#{createNewAssetBean.editAssetMaster.barCode}" />
			           
			           <h:outputLabel value="" />
			           <h:outputLabel value="Network Adaptor" />
			           <h:outputLabel value=":" />
			           <p:inputText value="#{createNewAssetBean.editAssetMaster.networkAdaptor}" />
			           
			           <h:outputLabel value="" />
			           <h:outputLabel value="Expiry date" />
			           <h:outputLabel value=":" />
			           <p:calendar navigator="true" display="inline" yearRange="c-10:c+30" pattern="dd-MMM-yyyy" value="#{createNewAssetBean.editAssetMaster.expiryDate}" />
			           
			           <h:outputLabel value="" />
			           <h:outputLabel value="Location" />
			           <h:outputLabel value=":" />
			           <p:inputText value="#{createNewAssetBean.editAssetMaster.location}" />
			           
			           <h:outputLabel value="" />
			           <h:outputLabel value="Warranty Expiry Date " />
			           <h:outputLabel value=":" />
			           <p:calendar navigator="true" display="inline" yearRange="c-10:c+30" pattern="dd-MMM-yyyy" value="#{createNewAssetBean.editAssetMaster.warrantyExpiryDate}" />
			           
			           <h:outputLabel value="" />
			           <h:outputLabel value="Asset Status" />
			           <h:outputLabel value=":" />
			           <p:selectOneMenu value="#{createNewAssetBean.editAssetMaster.assetStatus}" style="width:160px;">
			           		<f:selectItem itemLabel="In Store" itemValue="In Store" />
			           		<f:selectItem itemLabel="In Use" itemValue="In Use" />
			           		<f:selectItem itemLabel="Not working" itemValue="Not working" />
			           		<f:selectItem itemLabel="Disposed" itemValue="Disposed" />
			           </p:selectOneMenu>
			           
			           <h:outputLabel value="" />
			           <h:outputLabel value="Business Impact" />
			           <h:outputLabel value=":" />
			           <p:selectOneMenu value="#{createNewAssetBean.editAssetMaster.buinessImpact}" style="width:160px;">
			           		<f:selectItem itemLabel="High" itemValue="High" />
			           		<f:selectItem itemLabel="Medium" itemValue="Medium" />
			           		<f:selectItem itemLabel="Low" itemValue="Low" />
			           </p:selectOneMenu>
	          </h:panelGrid>	
	          <h:panelGrid columns="4" columnClasses="gridCellMiddleLeftAligned,employeeDetailLabel,gridCellMiddleLeftAligned, employeeDetailText">
		               <h:outputLabel value="" />
		               <h:outputLabel value="Asset Description" />
			           <h:outputLabel value=":" style="margin-left:18px;"/>
			           <p:inputTextarea style="width:484px;" value="#{createNewAssetBean.editAssetMaster.assetDescription}" autoResize="false"/>
		      </h:panelGrid>			
				</p:scrollPanel>
				
				<h:panelGroup style="float:right;">
					<p:commandButton id="submit1" value="Submit" update="editassets growl"  actionListener="#{createNewAssetBean.EditConfirmationAction}"  />			
					<p:commandButton id="closeButton" process="@this" value="Close" oncomplete="assetEditDialog.hide()" update="@form"/>	
				</h:panelGroup>	
			</p:dialog> 
		 
		
		
		<p:confirmDialog widgetVar="confirmation" id="confirmation" severity="alert" message="Do you want to save asset. Proceed?">
				<h:panelGroup style="text-align: right; float: right;">
					<p:commandButton value="Yes, Save Now" action="#{createNewAssetBean.saveAssetRequestAction}" update="@form" oncomplete="confirmation.hide()"/>
					<p:commandButton id="decline" value="Not Yet" onclick="confirmation.hide()" type="button" />
				</h:panelGroup>
		</p:confirmDialog>
		
		<p:confirmDialog widgetVar="confirmationEdit" id="confirmationEdit" severity="alert" message="Do you want to update asset properties. Proceed?">
				<h:panelGroup style="text-align: right; float: right;">
					<p:commandButton value="Yes, Update Now" action="#{createNewAssetBean.saveEditAssetAction}" update="@form" oncomplete="confirmationEdit.hide()"/>
					<p:commandButton value="Not Yet" onclick="confirmationEdit.hide()" type="button" />
				</h:panelGroup>
		</p:confirmDialog>
         
     </h:form>
	</ui:define>
	
</ui:composition>
